from django.contrib import admin
from .models import User


@admin.register(User)
class UserAdmin(admin.ModelAdmin):
    list_per_page = 5
    list_display = ['user_name', 'user_pwd', 'user_mail', 'user_phone', 'user_addr', 'user_code', 'user_recv']
    actions_on_top = True
    list_filter = ['user_name']
    search_fields = ['user_name']
